package com.yuyu.shop.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @author
 * @version 1.0
 * @description: 订单持久层实例
 * @date 2022/8/3 16:45
 */
@EqualsAndHashCode(callSuper = true)
@TableName("t_order")
@Data
public class OrderPO extends AbstractBasePO{

    @TableId(value = "id",type = IdType.AUTO)
    private String id;  //主键Id

    private String orderId; //订单唯一ID

    private String shopName; //商店名

    private String shopPhone; //商家电话

    private String goodsName; //商品名

    private BigDecimal originPrice; //商品原价

    private BigDecimal realPrice; //商品实价

    private Long goodsNum; //购买数量

    private String attribute; //具体参数 如256g内存 8g运行内存 双卡双待等

    private String specification; //具体什么规格 如 iPhone13 远峰蓝

    private String discountType; //优惠名称

    private BigDecimal reduceAccount; //优惠了多少

    private String discountDescribe; //优惠描述信息

    private String accountName; //用户名

    private String realName; //真实名字

    private String phone; //电话号码

    private Integer status; //订单状态

    private Integer orderType; //订单类型

    private String receiveInfo; //收获地址

    private Long userId; //用户id

    private Long goodId; //商品id
}
